#! /bin/sh

echo "mount all file system..."
mkdir /dev/pts
#挂载所有在 /etc/fstab 中定义的文件系统
/bin/mount -av

runlevel=S
prevlevel=N
umask 022
export runlevel prevlevel

mkdir /var/cache
mkdir /var/run
mkdir /var/log
mkdir /var/spool

echo "**************************"
echo "    Love Linux ! ! ! "
echo "**************************"

/bin/hostname -F /etc/sysconfig/HOSTNAME

#local service，这是留给开发者的自定义扩展入口
/etc/init.d/rc.local
